import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes = [
	{
		path: '/',
		redirect: {
			name: 'home'
		}
	},
	{
		path: '/home',
		name: 'home',
		component: () => import(/* webpackChunkName: "home" */ '@/views/home')
	},
	{
		path: '/note',
		name: 'note',
		component: () => import(/* webpackChunkName: "note" */ '@/views/note')
	},
	{
		path: '/user',
		name: 'user',
		component: () => import(/* webpackChunkName: "user" */ '@/views/user')
	}
	// {
	// 	path: '*',
	// 	name: 'notFound',
	// 	component: () => import(/* webpackChunkName: "notFound" */ '@/views/NotFound')
	// }
];

const router = new VueRouter({
	base: process.env.BASE_URL,
	routes
});

export default router;
